<?php
    class _header_controller extends Controller
    {
        public function __construct(){
            parent::__construct();
            $this->load->helper('html_helper');
            $this->load->library('auth');
        }

        public function display($data = null){  
            $view = $this->load->view(transLang('layout/header'));
            $currentPage = base64_encode(Utils::getRequestURL());
            $view->assign(array(
                'currentPage' => $currentPage,
                'isLogin' => auth('checkLogin'),
                'redirect' => $currentPage
//                'isAdmin' => $this->load->model('admin')->isAdmin()            
            ));
            if (null != $data)
                $view->assign($data);
            $view->display();
        }
    }